<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>团队详情 - 奢享时光</title>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
  <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
  <style>
    :root {
      --primary-gradient: linear-gradient(135deg, #7F00FF, #E100FF);
      --secondary-gradient: linear-gradient(135deg, #00F5A0, #00D9F5);
      --primary-color: #7F00FF;
      --secondary-color: #00F5A0;
      --accent-color: #FFE600;
      --dark-bg: #2D1B69;
      --light-bg: #6B3FA0;
      --text-light: #FFFFFF;
      --text-secondary: #E0D5FF;
      --card-bg: rgba(255, 255, 255, 0.1);
      --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
      --border-radius: 16px;
      --border: 1px solid rgba(255, 255, 255, 0.18);
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      -webkit-tap-highlight-color: transparent;
    }

    body {
      font-family: 'Noto Sans SC', 'Poppins', sans-serif;
      background: var(--dark-bg);
      color: var(--text-light);
      font-size: 14px;
      line-height: 1.5;
      overflow-x: hidden;
    }

    a {
      text-decoration: none;
      color: inherit;
    }

    button {
      font-family: inherit;
      cursor: pointer;
      border: none;
      outline: none;
    }

    .app-container {
      max-width: 480px;
      margin: 0 auto;
      min-height: 100vh;
      background: linear-gradient(180deg, var(--dark-bg), var(--light-bg));
      position: relative;
      overflow: hidden;
      padding-bottom: 70px;
    }

    /* 背景装饰 */
    .bg-decoration {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 0;
      pointer-events: none;
      overflow: hidden;
    }

    .bg-circle {
      position: absolute;
      border-radius: 50%;
    }

    .bg-circle:nth-child(1) {
      width: 300px;
      height: 300px;
      top: -150px;
      right: -100px;
      background: radial-gradient(circle, rgba(225, 0, 255, 0.2), rgba(225, 0, 255, 0));
    }

    .bg-circle:nth-child(2) {
      width: 250px;
      height: 250px;
      bottom: 10%;
      left: -100px;
      background: radial-gradient(circle, rgba(0, 245, 160, 0.15), rgba(0, 245, 160, 0));
    }

    /* 顶部导航 */
    .header {
      position: sticky;
      top: 0;
      z-index: 100;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      background: rgba(45, 27, 105, 0.8);
      padding: 15px 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: var(--border);
    }

    .back-button {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
    }

    .page-title {
      font-size: 18px;
      font-weight: 600;
    }

    .header-actions {
      display: flex;
      gap: 15px;
    }

    .header-actions i {
      font-size: 18px;
      color: var(--text-light);
      opacity: 0.9;
    }

    /* 内容区域 */
    .content {
      position: relative;
      z-index: 1;
      padding: 20px;
    }

    /* 团队统计卡片 */
    .team-overview {
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border: var(--border);
      border-radius: var(--border-radius);
      padding: 20px;
      margin-bottom: 25px;
      box-shadow: var(--shadow);
    }

    .team-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
    }

    .team-title {
      font-size: 16px;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .team-title i {
      color: var(--accent-color);
    }

    .team-stats {
      display: flex;
      gap: 15px;
      margin-bottom: 20px;
    }

    .team-stat {
      flex: 1;
      background: rgba(255, 255, 255, 0.05);
      border-radius: 12px;
      padding: 15px;
      text-align: center;
    }

    .stat-value {
      font-size: 22px;
      font-weight: 700;
      margin-bottom: 5px;
      background: var(--secondary-gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .stat-label {
      font-size: 12px;
      color: var(--text-secondary);
    }

    .team-progress {
      background: rgba(255, 255, 255, 0.05);
      border-radius: 12px;
      padding: 15px;
    }

    .progress-title {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 10px;
    }

    .progress-text {
      font-size: 14px;
      font-weight: 500;
    }

    .progress-value {
      font-size: 14px;
      color: var(--accent-color);
      font-weight: 600;
    }

    .progress-bar {
      height: 6px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 100px;
      overflow: hidden;
      margin-bottom: 8px;
    }

    .progress-fill {
      height: 100%;
      width: 35%;
      background: var(--primary-gradient);
      border-radius: 100px;
    }

    .progress-info {
      font-size: 12px;
      color: var(--text-secondary);
      text-align: right;
    }

    /* 团队成员列表 */
    .team-members {
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border: var(--border);
      border-radius: var(--border-radius);
      padding: 20px;
      margin-bottom: 25px;
      box-shadow: var(--shadow);
    }

    .tabs {
      display: flex;
      gap: 10px;
      margin-bottom: 20px;
    }

    .tab {
      padding: 5px 15px;
      border-radius: 100px;
      background: rgba(255, 255, 255, 0.05);
      font-size: 13px;
      color: var(--text-secondary);
      transition: all 0.3s ease;
    }

    .tab.active {
      background: var(--primary-gradient);
      color: var(--text-light);
    }

    .member-item {
      display: flex;
      align-items: center;
      gap: 15px;
      padding: 15px;
      background: rgba(255, 255, 255, 0.05);
      border-radius: 12px;
      margin-bottom: 15px;
    }

    .member-avatar {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      color: var(--secondary-color);
    }

    .member-info {
      flex: 1;
    }

    .member-name {
      font-size: 15px;
      font-weight: 500;
      margin-bottom: 4px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .member-level {
      display: inline-block;
      font-size: 10px;
      padding: 2px 6px;
      background: var(--secondary-gradient);
      border-radius: 100px;
      color: var(--dark-bg);
      font-weight: 600;
    }

    .member-id {
      font-size: 12px;
      color: var(--text-secondary);
      margin-bottom: 6px;
    }

    .member-join {
      font-size: 11px;
      color: var(--text-secondary);
    }

    .member-stats {
      text-align: right;
    }

    .member-value {
      font-size: 16px;
      font-weight: 600;
      color: var(--secondary-color);
      margin-bottom: 4px;
    }

    .member-label {
      font-size: 11px;
      color: var(--text-secondary);
    }

    /* 团队收益 */
    .team-earnings {
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border: var(--border);
      border-radius: var(--border-radius);
      padding: 20px;
      margin-bottom: 25px;
      box-shadow: var(--shadow);
    }

    .earnings-chart {
      background: rgba(255, 255, 255, 0.05);
      border-radius: 12px;
      padding: 15px;
      margin-bottom: 15px;
      height: 180px;
      position: relative;
    }

    .earnings-placeholder {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 20px;
    }

    .chart-bars {
      display: flex;
      height: 100%;
      align-items: flex-end;
      gap: 12px;
      padding-top: 30px;
      padding-bottom: 25px;
      position: relative;
    }

    .chart-bar {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
    }

    .bar {
      width: 100%;
      background: var(--primary-gradient);
      border-radius: 6px 6px 0 0;
    }

    .bar-label {
      font-size: 10px;
      color: var(--text-secondary);
    }

    .earnings-details {
      display: flex;
      gap: 15px;
    }

    .earnings-card {
      flex: 1;
      background: rgba(255, 255, 255, 0.05);
      border-radius: 12px;
      padding: 15px;
      text-align: center;
    }

    .earnings-value {
      font-size: 18px;
      font-weight: 700;
      margin-bottom: 5px;
      color: var(--accent-color);
    }

    .earnings-label {
      font-size: 12px;
      color: var(--text-secondary);
    }

    /* 底部导航 */
    .bottom-nav {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      max-width: 480px;
      margin: 0 auto;
      background: rgba(45, 27, 105, 0.8);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border-top: var(--border);
      display: flex;
      justify-content: space-around;
      padding: 12px 0;
      z-index: 100;
    }

    .nav-button {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 5px;
      color: var(--text-secondary);
      font-size: 12px;
      padding: 5px 0;
      flex: 1;
      transition: all 0.3s ease;
    }

    .nav-button i {
      font-size: 18px;
      margin-bottom: 2px;
    }

    .nav-button.active {
      color: var(--accent-color);
    }

    /* 浮动按钮 */
    .float-button {
      position: fixed;
      bottom: 85px;
      right: 25px;
      width: 56px;
      height: 56px;
      border-radius: 50%;
      background: var(--secondary-gradient);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
      color: var(--dark-bg);
      box-shadow: 0 5px 15px rgba(0, 245, 160, 0.3);
      z-index: 99;
      transition: all 0.3s ease;
    }

    .float-button:active {
      transform: scale(0.95);
    }
  </style>
</head>
<body>
  <div class="app-container">
    <!-- 背景装饰 -->
    <div class="bg-decoration">
      <div class="bg-circle"></div>
      <div class="bg-circle"></div>
    </div>

    <!-- 顶部导航 -->
    <header class="header">
      <a href="profile.html" class="back-button">
        <i class="fas fa-arrow-left"></i>
      </a>
      <div class="page-title">我的团队</div>
      <div class="header-actions">
        <i class="fas fa-question-circle"></i>
      </div>
    </header>

    <!-- 主要内容 -->
    <main class="content">
      <!-- 团队统计卡片 -->
      <section class="team-overview">
        <div class="team-header">
          <div class="team-title">
            <i class="fas fa-chart-line"></i>
            <span>团队概况</span>
          </div>
          <div class="team-filter">
            <i class="fas fa-calendar-alt"></i>
          </div>
        </div>
        <div class="team-stats">
          <div class="team-stat">
            <div class="stat-value">3</div>
            <div class="stat-label">直接邀请</div>
          </div>
          <div class="team-stat">
            <div class="stat-value">12</div>
            <div class="stat-label">团队总人数</div>
          </div>
          <div class="team-stat">
            <div class="stat-value">¥152</div>
            <div class="stat-label">本月收益</div>
          </div>
        </div>
        <div class="team-progress">
          <div class="progress-title">
            <div class="progress-text">团长晋升进度</div>
            <div class="progress-value">35%</div>
          </div>
          <div class="progress-bar">
            <div class="progress-fill"></div>
          </div>
          <div class="progress-info">距离白银团长还需邀请7人</div>
        </div>
      </section>

      <!-- 团队成员列表 -->
      <section class="team-members">
        <div class="team-header">
          <div class="team-title">
            <i class="fas fa-users"></i>
            <span>团队成员</span>
          </div>
        </div>
        <div class="tabs">
          <div class="tab active">直接邀请</div>
          <div class="tab">全部成员</div>
        </div>
        <div class="members-list">
          <div class="member-item">
            <div class="member-avatar">
              <i class="fas fa-user"></i>
            </div>
            <div class="member-info">
              <div class="member-name">
                李小姐 <span class="member-level">VIP</span>
              </div>
              <div class="member-id">ID: 1002345</div>
              <div class="member-join">加入时间: 2023-12-15</div>
            </div>
            <div class="member-stats">
              <div class="member-value">¥52</div>
              <div class="member-label">贡献收益</div>
            </div>
          </div>
          <div class="member-item">
            <div class="member-avatar">
              <i class="fas fa-user"></i>
            </div>
            <div class="member-info">
              <div class="member-name">
                王先生 <span class="member-level">VIP</span>
              </div>
              <div class="member-id">ID: 1003456</div>
              <div class="member-join">加入时间: 2024-01-05</div>
            </div>
            <div class="member-stats">
              <div class="member-value">¥68</div>
              <div class="member-label">贡献收益</div>
            </div>
          </div>
          <div class="member-item">
            <div class="member-avatar">
              <i class="fas fa-user"></i>
            </div>
            <div class="member-info">
              <div class="member-name">
                张女士 <span class="member-level">VIP</span>
              </div>
              <div class="member-id">ID: 1004567</div>
              <div class="member-join">加入时间: 2024-02-10</div>
            </div>
            <div class="member-stats">
              <div class="member-value">¥32</div>
              <div class="member-label">贡献收益</div>
            </div>
          </div>
        </div>
      </section>

      <!-- 团队收益 
      <section class="team-earnings">
        <div class="team-header">
          <div class="team-title">
            <i class="fas fa-coins"></i>
            <span>团队收益</span>
          </div>
          <div class="earnings-period">
            <span>近30天</span>
            <i class="fas fa-chevron-down"></i>
          </div>
        </div>
        <div class="earnings-chart">
          <div class="chart-bars">
            <div class="chart-bar">
              <div class="bar" style="height: 40%;"></div>
              <div class="bar-label">1月</div>
            </div>
            <div class="chart-bar">
              <div class="bar" style="height: 65%;"></div>
              <div class="bar-label">2月</div>
            </div>
            <div class="chart-bar">
              <div class="bar" style="height: 55%;"></div>
              <div class="bar-label">3月</div>
            </div>
            <div class="chart-bar">
              <div class="bar" style="height: 45%;"></div>
              <div class="bar-label">4月</div>
            </div>
            <div class="chart-bar">
              <div class="bar" style="height: 75%;"></div>
              <div class="bar-label">5月</div>
            </div>
            <div class="chart-bar">
              <div class="bar" style="height: 85%;"></div>
              <div class="bar-label">6月</div>
            </div>
          </div>
        </div>
        <div class="earnings-details">
          <div class="earnings-card">
            <div class="earnings-value">¥552</div>
            <div class="earnings-label">累计收益</div>
          </div>
          <div class="earnings-card">
            <div class="earnings-value">5次</div>
            <div class="earnings-label">团购次数</div>
          </div>
          <div class="earnings-card">
            <div class="earnings-value">¥152</div>
            <div class="earnings-label">本月收益</div>
          </div>
        </div>
      </section>-->
    </main>

    <!-- 浮动按钮 -->
    <a href="#" class="float-button" id="inviteButton">
      <i class="fas fa-user-plus"></i>
    </a>

    <!-- 底部导航 -->
    <nav class="bottom-nav">
      <a href="index.html" class="nav-button">
        <i class="fas fa-home"></i>
        <span>首页</span>
      </a>
      <a href="groupbuy.html" class="nav-button">
        <i class="fas fa-users"></i>
        <span>拼团</span>
      </a>
      <a href="shares.html" class="nav-button">
        <i class="fas fa-chart-line"></i>
        <span>股权</span>
      </a>
      <a href="profile.html" class="nav-button active">
        <i class="fas fa-user"></i>
        <span>我的</span>
      </a>
    </nav>
  </div>

  <script>
    document.addEventListener('DOMContentLoaded', function() {
      // 标签切换功能
      const tabs = document.querySelectorAll('.tab');
      const membersList = document.querySelector('.members-list');
      
      tabs.forEach(tab => {
        tab.addEventListener('click', function() {
          tabs.forEach(t => t.classList.remove('active'));
          this.classList.add('active');
          
          if (this.textContent === '全部成员') {
            // 切换到全部成员标签
            membersList.innerHTML = `
              <div class="member-item">
                <div class="member-avatar">
                  <i class="fas fa-user"></i>
                </div>
                <div class="member-info">
                  <div class="member-name">
                    李小姐 <span class="member-level">VIP</span>
                  </div>
                  <div class="member-id">ID: 1002345</div>
                  <div class="member-join">加入时间: 2023-12-15</div>
                </div>
                <div class="member-stats">
                  <div class="member-value">¥52</div>
                  <div class="member-label">贡献收益</div>
                </div>
              </div>
              <div class="member-item">
                <div class="member-avatar">
                  <i class="fas fa-user"></i>
                </div>
                <div class="member-info">
                  <div class="member-name">
                    王先生 <span class="member-level">VIP</span>
                  </div>
                  <div class="member-id">ID: 1003456</div>
                  <div class="member-join">加入时间: 2024-01-05</div>
                </div>
                <div class="member-stats">
                  <div class="member-value">¥68</div>
                  <div class="member-label">贡献收益</div>
                </div>
              </div>
              <div class="member-item">
                <div class="member-avatar">
                  <i class="fas fa-user"></i>
                </div>
                <div class="member-info">
                  <div class="member-name">
                    张女士 <span class="member-level">VIP</span>
                  </div>
                  <div class="member-id">ID: 1004567</div>
                  <div class="member-join">加入时间: 2024-02-10</div>
                </div>
                <div class="member-stats">
                  <div class="member-value">¥32</div>
                  <div class="member-label">贡献收益</div>
                </div>
              </div>
              <div class="member-item">
                <div class="member-avatar">
                  <i class="fas fa-user"></i>
                </div>
                <div class="member-info">
                  <div class="member-name">
                    赵先生 <span class="member-level">VIP</span>
                  </div>
                  <div class="member-id">ID: 1005678</div>
                  <div class="member-join">加入时间: 2024-02-15</div>
                </div>
                <div class="member-stats">
                  <div class="member-value">¥25</div>
                  <div class="member-label">贡献收益</div>
                </div>
              </div>
              <div class="member-item">
                <div class="member-avatar">
                  <i class="fas fa-user"></i>
                </div>
                <div class="member-info">
                  <div class="member-name">
                    杨女士 <span class="member-level">VIP</span>
                  </div>
                  <div class="member-id">ID: 1006789</div>
                  <div class="member-join">加入时间: 2024-03-01</div>
                </div>
                <div class="member-stats">
                  <div class="member-value">¥18</div>
                  <div class="member-label">贡献收益</div>
                </div>
              </div>
            `;
          } else {
            // 切换回直接邀请标签
            membersList.innerHTML = `
              <div class="member-item">
                <div class="member-avatar">
                  <i class="fas fa-user"></i>
                </div>
                <div class="member-info">
                  <div class="member-name">
                    李小姐 <span class="member-level">VIP</span>
                  </div>
                  <div class="member-id">ID: 1002345</div>
                  <div class="member-join">加入时间: 2023-12-15</div>
                </div>
                <div class="member-stats">
                  <div class="member-value">¥52</div>
                  <div class="member-label">贡献收益</div>
                </div>
              </div>
              <div class="member-item">
                <div class="member-avatar">
                  <i class="fas fa-user"></i>
                </div>
                <div class="member-info">
                  <div class="member-name">
                    王先生 <span class="member-level">VIP</span>
                  </div>
                  <div class="member-id">ID: 1003456</div>
                  <div class="member-join">加入时间: 2024-01-05</div>
                </div>
                <div class="member-stats">
                  <div class="member-value">¥68</div>
                  <div class="member-label">贡献收益</div>
                </div>
              </div>
              <div class="member-item">
                <div class="member-avatar">
                  <i class="fas fa-user"></i>
                </div>
                <div class="member-info">
                  <div class="member-name">
                    张女士 <span class="member-level">VIP</span>
                  </div>
                  <div class="member-id">ID: 1004567</div>
                  <div class="member-join">加入时间: 2024-02-10</div>
                </div>
                <div class="member-stats">
                  <div class="member-value">¥32</div>
                  <div class="member-label">贡献收益</div>
                </div>
              </div>
            `;
          }
        });
      });
      
      // 邀请按钮
      const inviteButton = document.getElementById('inviteButton');
      inviteButton.addEventListener('click', function(e) {
        e.preventDefault();
        alert('即将打开邀请好友页面');
      });
      
      // 日期选择器
      const periodSelector = document.querySelector('.earnings-period');
      periodSelector.addEventListener('click', function() {
        alert('打开时间筛选器');
      });
      
      // 页面加载动画
      const sections = document.querySelectorAll('section');
      sections.forEach((section, index) => {
        section.style.opacity = '0';
        section.style.transform = 'translateY(20px)';
        section.style.transition = `opacity 0.5s ease, transform 0.5s ease`;
        
        setTimeout(() => {
          section.style.opacity = '1';
          section.style.transform = 'translateY(0)';
        }, 100 + (index * 150));
      });
    });
  </script>
</body>
</html> 